
                    <form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
                        <div class="table-responsive">
                            <table class="table table-bordered table-hover">
                                <thead>
                                <tr>
                                    <td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);"></td>
    
                                    <td class="text-right">
                                        <a href="javascript:sort('user_id');">ID</a>
                                    </td>
                                    <td class="text-left">
                                        <a href="javascript:sort('username');">会员姓名</a>
                                    </td>
                                    <td class="text-left">
                                        <a href="javascript:sort('level');">所属店铺</a>
                                    </td>
                                    <td class="text-left">
                                        <a href="javascript:sort('total_amount');">推荐人（手表）</a>
                                    </td>
                                    <td class="text-left">
                                        <a href="javascript:sort('tuixiao_id');">理疗师</a>
                                    </td>
                                    
                                    <td class="text-left">
                                        <a href="javascript:void(0);">下线数</a>
                                    </td>
                                    <td class="text-left"><a href="javascript:void(0);">病种</a></td>                              
                                    <td class="text-left">
                                        <a href="javascript:sort('mobile');">手机号码</a>
                                    </td>
                                    <td class="text-left">
                                        <a href="javascript:sort('user_money');">余额</a>
                                    </td>
                                    <td class="text-left">
                                        <a href="javascript:sort('pay_points');">积分</a>
                                    </td>
                                    <td class="text-left">
                                        <a href="javascript:sort('reg_time');">注册日期</a>
                                    </td>
                                    <td class="text-right">操作</td>
                                </tr>
                                </thead>
                                <tbody>
                                <volist name="userList" id="list">
                                    <tr>
                                        <td class="text-center">
                                            <input type="checkbox" name="selected[]" value="{$list['user_id']}">
                                            <input type="hidden" name="shipping_code[]" value="flat.flat">
                                        </td>
                                        <td class="text-right">{$list.user_id}</td>
                                        <td class="text-left">{$list.nickname}</td>
                                        <td class="text-left">
                                        {$list.store_name}
                                        </td>
                                        <td class="text-left"><if condition="$list['tjr_id'] gt '0'">{$list.tjr_name}<a href="{:U('Seller/user/detail',array('id'=>$list['tjr_id']))}" data-toggle="tooltip" title="" class="btn btn-info" data-original-title="添加推荐人"><i class="fa fa-eye"></i><else/><a href="javascript:void(0)" onclick="alert('暂无推荐人')" data-toggle="tooltip" title="" class="btn btn-info" data-original-title="添加推荐人"><i class="fa fa-eye"></i></a></if></a></td>
                                        <td class="text-left">{$tguser_m[$list[tuixiao_id]]}</td>
                                        <td class="text-left">{$list.tjr_cs}
                                         
                                        </td>
                                        <td class="text-left">
                                            {$list.bz}
                                            
                                        </td>
                                        
                                        <td class="text-left">{$list.mobile}
                                           
                                        </td>
                                        <td class="text-left">{$list.user_money}</td>
                                        <td class="text-left">{$list.pay_points}</td>
                                        <td class="text-left">{$list.reg_time|date='Y-m-d',###}</td>

                                        <td class="text-right">
                                            <if condition="$list['tjr_cs'] egt '3' "><if condition="$list['order_id'] neq null "><a href="{:U('Seller/order/detail',array('order_id'=>$list['order_id']))}" class="btn btn-primary"><i class="fa fa-search"></i>退款</a><else/>已退款</if></if>
                                            <a href="/index.php?m=Seller&c=Order&a=add_order&user_id={$list.user_id}" class="btn btn-primary"><i class="fa fa-search"></i>添加订单</a>
                                            <a href="{:U('Seller/user/detail',array('id'=>$list['user_id']))}" data-toggle="tooltip" title="" class="btn btn-info" data-original-title="查看详情"><i class="fa fa-eye"></i></a>
                                            <!--<a href="{:U('Seller/user/address',array('id'=>$list['user_id']))}" data-toggle="tooltip" title="" class="btn btn-info" data-original-title="收货地址"><i class="fa fa-home"></i></a>
                                            <!--<a href="{:U('Admin/order/index',array('user_id'=>$list['user_id']))}" data-toggle="tooltip" title="" class="btn btn-info" data-original-title="订单查看"><i class="fa fa-shopping-cart"></i></a>-->
                                            <a href="{:U('Seller/user/account_log',array('id'=>$list['user_id']))}" data-toggle="tooltip" title="" class="btn btn-info" data-original-title="账户"><i class="glyphicon glyphicon-yen"></i></a>
                                            <a href="{:U('Seller/user/delete',array('id'=>$list['user_id']))}" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                        </td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                        </div>
                    </form>
                    <div class="row">
                        <div class="col-sm-3 text-left">
                        </div>
                        <div class="col-sm-6 text-right">{$page}</div>
                    </div>
<script>
    $(".pagination  a").click(function(){
        var page = $(this).data('p');
        ajax_get_table('search-form2',page);
    });
</script>